#include "iostream"
#include "string"
using namespace std;
int main()
{
    int a, b;
    cin >> a >> b;
    if (b == 0)
    {
        try
        {
            /* code */
            throw "除数不能为0";
        }
        catch (const std::exception &e)
        {
            std::cerr << e.what() << '\n';
            cout << "请重新输入b的值: "
                 << " ";
            cin >> b;
        }
    }

    cout << a / b;
}